package com.huatai.exchange.service;

import com.faneui.common.exception.BusinessException;
import com.huatai.exchange.dal.model.ExcFileLoadInfo;

import java.util.List;

public interface ExcFileLoadInfoService {

    void addExcFileLoadInfo(ExcFileLoadInfo excFileLoadInfo) throws BusinessException;

    ExcFileLoadInfo queryExcFileLoadInfo(String id) throws BusinessException;

    List<ExcFileLoadInfo> queryExcFileLoadInfoList(ExcFileLoadInfo excFileLoadInfo) throws BusinessException;

    void modifyExcFileLoadInfo(ExcFileLoadInfo excFileLoadInfo) throws BusinessException;

    List<ExcFileLoadInfo> queryExcFileNeedLoadInfoList() throws BusinessException;

    /**
     * 更新下一个日期
     */
    void modifyFileLoadInfoWorkDate(String id, String newNextDate, String oldNextDate) throws BusinessException;

    /**
     *    创建调度批次， 事务原子性
     */
    void createScheduleBatch(ExcFileLoadInfo loadInfo,String occurDate) throws BusinessException;


}
